package enterprises

import grails.test.*

class TypeOwnershipIntegrationTests extends GroovyTestCase {
    protected void setUp() {
        super.setUp()
    }

    protected void tearDown() {
        super.tearDown()
    }

    void testUniqueName() {
		new TypeOwnership(name:"asd").save(flush:true)
		def duplicateNameTypeOwnership = new TypeOwnership(name:"asd")
		
		assertFalse(duplicateNameTypeOwnership.validate())
		assertNull duplicateNameTypeOwnership.save()
    }
}
